package org.jeecg.modules.purchase.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 供应商
 * @Author: jeecg-boot
 * @Date:   2022-11-15
 * @Version: V1.0
 */
@ApiModel(value="purchase_provider对象", description="供应商")
@Data
@TableName("purchase_provider")
public class PurchaseProvider implements Serializable {
    private static final long serialVersionUID = 1L;

	/**ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "ID")
    private String id;
	/**供应商编码*/
	@Excel(name = "供应商编码", width = 15)
    @ApiModelProperty(value = "供应商编码")
    private String code;
	/**供应商全称*/
	@Excel(name = "供应商全称", width = 15)
    @ApiModelProperty(value = "供应商全称")
    private String name;
	/**供应商简称*/
	@Excel(name = "供应商简称", width = 15)
    @ApiModelProperty(value = "供应商简称")
    private String shortName;
	/**供应商类型*/
	@Excel(name = "供应商类型", width = 15, dicCode = "purchase_provider_type")
    @Dict(dicCode = "purchase_provider_type")
    @ApiModelProperty(value = "供应商类型")
    private String providerType;
	/**经营范围*/
	@Excel(name = "经营范围", width = 15, dicCode = "purchase_goods_type")
    @Dict(dicCode = "purchase_goods_type")
    @ApiModelProperty(value = "经营范围")
    private String businessScope;
	/**供货商状态*/
	@Excel(name = "供货商状态", width = 15, dicCode = "purchase_provider_status")
    @Dict(dicCode = "purchase_provider_status")
    @ApiModelProperty(value = "供货商状态")
    private String providerStatus;
	/**公司邮箱*/
	@Excel(name = "公司邮箱", width = 15)
    @ApiModelProperty(value = "公司邮箱")
    private String companyMail;
	/**省市区*/
//	@Excel(name = "省市区", width = 15)
    @ApiModelProperty(value = "省市区")
    private String province;
	/**详细地址*/
	@Excel(name = "详细地址", width = 15)
    @ApiModelProperty(value = "详细地址")
    private String contactSite;
	/**开户行*/
	@Excel(name = "开户行", width = 15)
    @ApiModelProperty(value = "开户行")
    private String openingBank;
	/**收款账户*/
	@Excel(name = "收款账户", width = 15)
    @ApiModelProperty(value = "收款账户")
    private String paymentAccount;
	/**发票类型 */
	@Excel(name = "发票类型 ", width = 15, dicCode = "purchase_invoice_type")
    @Dict(dicCode = "purchase_invoice_type")
    @ApiModelProperty(value = "发票类型 ")
    private String invoiceType;
	/**发票抬头*/
	@Excel(name = "发票抬头", width = 15)
    @ApiModelProperty(value = "发票抬头")
    private String invoiceTitle;
	/**税率  */
	@Excel(name = "税率  ", width = 15, dicCode = "purchase_tax_rate")
    @Dict(dicCode = "purchase_tax_rate")
    @ApiModelProperty(value = "税率  ")
    private String taxRate;
	/**结算方式*/
	@Excel(name = "结算方式", width = 15)
    @ApiModelProperty(value = "结算方式")
    private String clearingForm;
	/**纳税人识别号*/
	@Excel(name = "纳税人识别号", width = 15)
    @ApiModelProperty(value = "纳税人识别号")
    private String taxpayerIdentificationNumber;
	/**法定代表人*/
	@Excel(name = "法定代表人", width = 15)
    @ApiModelProperty(value = "法定代表人")
    private String legalRepresentative;
	/**注册资本*/
	@Excel(name = "注册资本", width = 15)
    @ApiModelProperty(value = "注册资本")
    private String registeredCapital;
	/**实缴资本*/
	@Excel(name = "实缴资本", width = 15)
    @ApiModelProperty(value = "实缴资本")
    private String contributedCapital;
	/**企业性质*/
	@Excel(name = "企业性质", width = 15)
    @ApiModelProperty(value = "企业性质")
    private String enterpriseNature;
	/**注册地址*/
	@Excel(name = "注册地址", width = 15)
    @ApiModelProperty(value = "注册地址")
    private String registeredAddress;
	/**成立时间*/
	@Excel(name = "成立时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "成立时间")
    private Date establishedTime;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
	/**审核状态 */
	@Excel(name = "审核状态 ", width = 15, dicCode = "purchase_process_status")
    @Dict(dicCode = "purchase_process_status")
    @ApiModelProperty(value = "审核状态 ")
    private String processStatus;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    @TableField(fill=FieldFill.INSERT)
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    @TableField(fill=FieldFill.INSERT)
    private Date createTime;
	/**最后修改人*/
    @ApiModelProperty(value = "最后修改人")
    @TableField(fill=FieldFill.UPDATE)
    private String updateBy;

	/**最后修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "最后修改时间")
    @TableField(fill=FieldFill.UPDATE)
    private Date updateTime;
	/**逻辑删除 */
    /**逻辑删除 */
    @TableLogic
//	@Excel(name = "逻辑删除 ", width = 15)
    @ApiModelProperty(value = "逻辑删除 ")
    private Integer delFlag;
	/**当前登录用户部门编号*/
    @ApiModelProperty(value = "当前登录用户部门编号")
    private String sysOrgCode;
	/**租户id*/
//	@Excel(name = "租户id", width = 15)
    @ApiModelProperty(value = "租户id")
    private String tenantId;
}
